package com.briup.server.domain.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.FutureOrPresent;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;

@Data
@Schema(description = "实验室预约申请DTO")
public class RentalAppointmentDTO {
    @Schema(description = "实验室ID")
    @NotBlank(message = "实验室ID不能为空")
    private String labsId;
    @Schema(description = "预约时间段ID")
    @NotNull(message = "预约时间段ID不能为空")
    private Integer rentalTimeId;
    @Schema(description = "预约的日期")
    @NotNull(message = "预约的日期不能为空")
    @FutureOrPresent(message = "预约日期不能在过去")
    private LocalDate rentalDate;
}
